import Vue from "vue";
import Vant from "vant";
import "vant/lib/index.css";
import App from "./App.vue";
import Vant from 'vant';
import 'vant/lib/index.css';
import router from "./router";
import setRem from "./setRem";
import "./css/reset.css"
import { Search } from "vant";
Vue.use(Search);
import { Grid, GridItem } from 'vant';

import '@/assets/fonts/iconfont.css';

import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"

Vue.use(ElementUI)
import setRem from "./vue-rem"

import setRem from "./setRem";
import "./css/reset.css"
import { Search } from "vant";
Vue.use(Search);
import { Grid, GridItem } from 'vant';

Vue.use(Grid);
Vue.use(GridItem);
Vue.config.productionTip = false;
Vue.use(Vant);


if (process.env.NODE_ENV === 'development') {
  require("./mock/index")
}

let vm = new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");


setRem(750, 100);
window.addEventListener('resize', function () { setRem(750, 100); });




console.log(vm);

